﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GroupPermission.aspx.cs"
    Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <!--#include virtual="include/Head.ascx"-->
</head>
<body>
    <div id="body-wrapper">
        <div id="header">
            <!--#include virtual="include/top.ascx"-->
        </div>
        <div id="main-content1">
            <div class="">
            </div>
            <h2>
                Group Permission</h2>
            <div class="clear">
            </div>
            <div class="content-box">
                <form id="frmEdit" runat="server" method="post">

                    <script type="text/javascript">                    
                          $(document).ready(function() {    
                            $('#frmEdit').validate({
                              errorElement: "em",
                              errorPlacement: function(error, element) {error.appendTo( element.parent("td").next("td") );},
                              submitHandler: function(form) {form.submit();},
                              rules:{
                                txtGroupName: {required: true},
                                txtGroupCode: {required: true},                                
                              },
                              messages: {
                                txtGroupName:{required: "Tên nhóm không được để trống!"},                               
                                txtGroupCode: {required: "Mã nhóm không được để trống!"},                                
                              }
                            });});
                    </script>

                    <div class="content-box-header">
                        <h3 style="cursor: s-resize;">
                            <asp:Label ID="lblError" runat="server" CssClass="error"></asp:Label>
                        </h3>
                        <div class="clear">
                        </div>
                    </div>
                    <fieldset class="adminform">
                        <!--<legend style="padding-left:0px;"></legend>-->
                        <table class="paramlist admintable" width="100%">
                            <tr>
                                <td class="key" align="left" width="20%">
                                    Tên nhóm:</td>
                                <td align="left" width="200px">
                                    <asp:TextBox ID="txtGroupName" name="txtGroupName" runat="server" Width="300px"></asp:TextBox></td>
                                <td align="left" class="row_error title_fontend" title="Row Error">
                                </td>
                            </tr>
                            <tr>
                                <td class="key" align="left" width="20%">
                                    Mã nhóm:</td>
                                <td align="left" width="200px">
                                    <asp:TextBox ID="txtGroupCode" name="txtGroupCode" runat="server" Width="300px"></asp:TextBox>
                                </td>
                                <td align="left" class="row_error title_fontend" title="Row Error">
                                </td>
                            </tr>
                            <%--<tr>
                                <td class="key" align="left" width="20%">
                                    Tỉnh:</td>
                                <td align="left" width="300px">
                                    <asp:Label ID="lblLocation" runat=server></asp:Label><br /> 
                                    <asp:ListBox ID="listLocation" runat="server" Width="300px" runat="server" SelectionMode="Multiple"
                                        Rows="15" ></asp:ListBox>
                                </td>
                            </tr>--%>
                            <tr>
                                <td class="key" align="left" width="20%">
                                    Mô tả:</td>
                                <td align="left" width="200px">
                                    <asp:TextBox ID="txtDescription" runat="server" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                        <div style="padding-left: 10em; margin-top: 5px; width: 100%">
                            <asp:Button ID="btnSave" runat="server" Text="Update" class="button" OnClick="btnSave_Click1" />
                            &nbsp;&nbsp;<input type="button" id="Back" value="Back" class="button" onclick="window.location.href='GroupPermissionList.aspx';" />
                        </div>
                    </fieldset>
                </form>
            </div>
            <div id="footer">
                &nbsp;</div>
        </div>
    </div>
</body>
</html>
